import { ColumnGroupType, ColumnType } from "antd/es/table"

export const riskMembersetupColumns = (
	newFormat: (p: { id: string } | string) => string,
	_getFromDic: (arg: string, strictlyLabel?: boolean) => any
): Record<string, ColumnGroupType<any> | ColumnType<any>> => ({
	riskWhitelistMember_agentAccount: {
		key: "userName",
		dataIndex: "userName",
		title: newFormat("common.agent_number"),
		align: "center"
	},
	riskWhitelistMember_userName: {
		key: "userName",
		dataIndex: "userName",
		title: newFormat("funds.user_name"),
		align: "center"
	},
	riskWhitelistMember_businessModel: {
		key: "userName",
		dataIndex: "userName",
		title: newFormat("label.member.business_model"),
		align: "center"
	},
	riskWhitelistMember_createdBy: {
		key: "createdBy",
		dataIndex: "createdBy",
		title: newFormat("risk.form.created_by"),
		align: "center"
	},
	riskWhitelistMember_createdAt: {
		key: "createdAt",
		dataIndex: "createdAt",
		title: newFormat("risk.form.created_at"),
		align: "center"
	},
	riskWhitelistMember_remark: {
		key: "remark",
		dataIndex: "remark",
		title: newFormat("risk.form.remark"),
		align: "center"
	}
})
